package com.nearby.demand.request;

/**
 * Created by IME on 2015/12/27.
 */
public enum EnumUrl {
    register("register"), sign_in("sign_in"),fetch_base_user("fetch_base_user"),fetch_detail_user("fetch_detail_user");
    private EnumUrl(String valString) {
        this.valueString = valString;
    }

    public static int size() {
        return EnumUrl.values().length;
    }

    public String valueString;

    public String toString() {
        return valueString;
    }

    public static EnumUrl valueof(String vaString) {
        if (vaString.equals("home_1")) {
            return EnumUrl.register;
        } else if (vaString.equals("home_2")) {
            return EnumUrl.sign_in;
        }else if (vaString.equals("home_3")) {
            return EnumUrl.fetch_base_user;
        }else if (vaString.equals("home_4")) {
            return EnumUrl.fetch_detail_user;
        }
        return null;

    }
}
